package cn.sjtu.design_pattern.factory.simple_factory;

/**
 * @author syo 2319615164@qq.com
 * @description 简单工厂模式的测试客户端
 * @date 2024/5/16
 * @Copyright syo
 */
public class Client {
    public static void main(String[] args) {
        PayService payService = PayServiceFactory.getPayService(0);
        if (payService != null) {
            payService.pay();
        }
    }
}
